using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._General
{
    /// <summary>
    /// <para>Transfer Files</para>
    /// <para>Transfers files between a file system and a cloud storage workspace.</para>
    /// <para>在文件系统和云存储工作区之间传输文件。</para>
    /// </summary>    
    [DisplayName("Transfer Files")]
    public class TransferFiles : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public TransferFiles()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_paths">
        /// <para>Input Paths</para>
        /// <para>The list of input files or folders that will be copied to the output folder. The path can be a file system path or cloud storage path where the .acs file can be used.</para>
        /// <para>将复制到输出文件夹的输入文件或文件夹的列表。该路径可以是可以使用 .acs 文件的文件系统路径或云存储路径。</para>
        /// </param>
        /// <param name="_output_folder">
        /// <para>Output Folder</para>
        /// <para>The output folder path where the files will be copied.</para>
        /// <para>将复制文件的输出文件夹路径。</para>
        /// </param>
        public TransferFiles(List<object> _input_paths, object _output_folder)
        {
            this._input_paths = _input_paths;
            this._output_folder = _output_folder;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Transfer Files";

        public override string CallName => "management.TransferFiles";

        public override List<string> AcceptEnvironments => ["parallelProcessingFactor"];

        public override object[] ParameterInfo => [_input_paths, _output_folder, _file_filter, _derived_output_folder];

        /// <summary>
        /// <para>Input Paths</para>
        /// <para>The list of input files or folders that will be copied to the output folder. The path can be a file system path or cloud storage path where the .acs file can be used.</para>
        /// <para>将复制到输出文件夹的输入文件或文件夹的列表。该路径可以是可以使用 .acs 文件的文件系统路径或云存储路径。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Paths")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _input_paths { get; set; }


        /// <summary>
        /// <para>Output Folder</para>
        /// <para>The output folder path where the files will be copied.</para>
        /// <para>将复制文件的输出文件夹路径。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Folder")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_folder { get; set; }


        /// <summary>
        /// <para>Filters</para>
        /// <para>A file pattern filter that will limit the number of files that need to be copied, such as .tif, .crf, and similar image file types.</para>
        /// <para>一个文件模式筛选器，用于限制需要复制的文件数，例如 .tif、.crf 和类似的图像文件类型。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Filters")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _file_filter { get; set; } = null;


        /// <summary>
        /// <para>Output Folder</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Folder")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _derived_output_folder { get; set; }


        public TransferFiles SetEnv(object parallelProcessingFactor = null)
        {
            base.SetEnv(parallelProcessingFactor: parallelProcessingFactor);
            return this;
        }

    }

}